FDT Data Gathering and Source Code
==================================

This directory contains the code and data used to estimate the Financial Data Transparency Index.

The raw data used to estimate the index was gathered from the GFDD and FRED using the source code in *RawDataGather.R*. This also includes code to generate figure A-2 in the supplementary materials. The downloaded data is stored in the *RawData* directory.

The directory also contains:

-   *FRT_Stan_in_Parallel.R*: source code to prepare the data for estimating the FDT Stan model in parallel.

-   *FRT.stan*: the full Stan model used to estimate the Index.

-   *frt_stan.jl*: Julia source code that initialises the model and saves the results. Note that the raw output is not included in this folder due to its very large size.

-   *read_julia_stan.R*: source code to read in the raw output from the Stan model, create summaries, save the results as *IndexData/FRTIndex_v2.csv*, and produce discrimination and difficulty parameter plots (figures A-5 and A-6 in the supplementary materials).

-   *miscFunctions*: a directory with R functions used in the above source code.
